package com.niit.happynicedays;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class nicedays extends Activity {

	ImageView imHalloween, imHoliday,imValentine;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		setContentView(R.layout.nicedays);

		imHalloween = (ImageView) findViewById(R.id.halloween);
	
		imValentine =(ImageView)findViewById(R.id.valentine);
		
		imValentine.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imValentine.setImageResource(R.drawable.valentine1);
				Intent intent=new Intent(getBaseContext(),valentineday.class);
				startActivity(intent);
				finish();
				
			}
		});

		imHalloween.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				imHalloween.setImageResource(R.drawable.halloween1);
				Intent intent = new Intent(getBaseContext(), halloween.class);
				startActivity(intent);
				finish();
			}
		});
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			Intent intent = new Intent(getBaseContext(), mainmenu.class);
			startActivity(intent);
			finish();
		}
		return super.onKeyDown(keyCode, event);
	}

}
